package cn.yunhe.sao.context;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration//用于表示当前类为容器的配之类，类似beans
@ComponentScan(basePackages = "cn.yunhe.sao") //扫描的范围
@EnableAspectJAutoProxy(proxyTargetClass = true) 
//上面的配置相当于下面的xml配置:自动代理<context:component-scan base-package="cn.yunhe.spring"></context:component-scan>
//<aop:aspectj-autoproxy proxy-target-class="true"></aop:aspectj-autoproxy>
public class ApplicationCfg {
	
}
